package action.commande;


import org.junit.After;
import org.junit.Before;

import servletunit.struts.MockStrutsTestCase;

public class TestPaiementAction extends MockStrutsTestCase {

	@Before
	public void setUp() throws Exception {
		super.setUp();
	}

	@After
	public void tearDown() throws Exception {
	}

	public void testPaiement(){
		setRequestPathInfo("/PaiementAction");
		getRequest().getSession().setAttribute("typeCompte", 1);
//		addRequestParameter("Num_Commdande", "1");
		getRequest().setAttribute("Num_Commdande", "1");
//		addRequestParameter("Montant", "10.00");
		getRequest().setAttribute("Montant", "10.00");
		
		actionPerform();
		verifyForward("redirectionAdresseMail");
	}
	
	
}
